package com.blb.community.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community.pojo.Unit;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;

public interface UnitMapper extends BaseMapper<Unit> {
    @Select("select * from zy_unit")
    IPage<Unit> selectPage(IPage<Unit> page);

    List<String> selectByBuildName();

    List<Unit> selectBuildingCommunity(Long current, Long size, String unitName, String unitCode, String unitHaveElevator, String buildingName, BigInteger communityId);
}
